
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let map1 = new Map();
        // 设置值或者添加值
        map1.set('age',obj1.age)
        map1.set('age',28)
        map1.set('name',obj1.name)
        map1.set(true,10086)
        map1.set('true',10010)
        map1.set(div1,'我是div1')
        let res = map1.get(true)
        console.log(res);
    </script>
</body>
</html>